//
//  MonthYearView.h
//  MoneyIndividual
//
//  Created by Le Anh Tai on 1/4/14.
//  Copyright (c) 2014 Le Anh Tai. All rights reserved.
//

#import "BaseView.h"

@protocol MonthYearViewDelegate;
@interface MonthYearView : BaseView<UIPickerViewDataSource, UIPickerViewDelegate>
{
    UIView *_monthView;
    UIPickerView *_yearPickerView;
    NSMutableArray *_years;
    
    int _selectedMonth;
    int _selectedYear;
    
    int _minYear;
    int _maxYear;
}

@property (nonatomic, weak) id<MonthYearViewDelegate> delegate;

- (id)initWithMonth:(int)month year:(int)year;

@end

@protocol MonthYearViewDelegate <NSObject>

- (void)monthYearView:(MonthYearView*)view didSelectMonth:(int)month year:(int)year;


@end
